package org.etherframework.tests.features.command.commands
{
	import org.etherframework.controller.ReactiveCommand;
	
	import raix.reactive.IObservable;
	import raix.reactive.Observable;
	import raix.reactive.Unit;
	
	public class SampleReactiveCommand extends ReactiveCommand
	{	
		public function SampleReactiveCommand() 
		{
			// We don't nee any initialization here, so just mark it.
			markAsInitialized();
		}
		
		override public function observable():IObservable
		{
			return Observable.defer(function():IObservable 
			{
				return Observable.value(new Unit());
			}).delay(50);
		}
	}
}